if SERVER then
   AddCSLuaFile("shared.lua")
else
   ENT.PrintName = "rpgdm_proj"
end

ENT.Type = "anim"
ENT.NextUse = 0

--[[---------------------------------------------------------
   Name: Initialize
-----------------------------------------------------------]]

if SERVER then

	function ENT:Initialize()
		print("AKSJDALKSD")
		self.Entity:SetModel( "models/props_borealis/bluebarrel001.mdl" )
		self.Entity:SetSolid( SOLID_OBB )
		self:PhysicsInit( SOLID_OBB )
		self.Entity:SetNoDraw(true)
		NextUse = CurTime() + 2
	end

	function ENT:AcceptInput( name, activator, caller )
		if ( name == "Use" and activator and activator:IsPlayer( ) and CurTime() >= self.NextUse ) then
			print("Used")
			if(self.MatchMaker)then
				net.Start( "ShowMatchMakingMenu" )
				net.Send( activator )
				self.NextUse = CurTime() + 0.5
			else
				net.Start( "ShowPresetMenu" )
				net.Send( activator )
				self.NextUse = CurTime() + 0.5
			end
		end
	end

end